package com.sikaryofficial.backend.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.sikaryofficial.backend.domain.vo.store.StoreEvaluateExtObj;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "store_evaluate_ext_t", autoResultMap = true)
public class StoreEvaluateExt implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 店铺评价ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long storeEvaluateExtId;
    /**
     * 店铺ID
     */
    private Long storeId;
    /**
     * 评价扩展对象
     */
    @TableField(typeHandler = FastjsonTypeHandler.class, value = "ext_obj")
    private StoreEvaluateExtObj extObj;
    /**
     * 乐观锁
     */
    private Integer revision;
    /**
     * 创建人
     */
    private Long createdBy;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 更新人
     */
    private Long updatedBy;
    /**
     * 更新时间
     */
    private Date updatedTime;
    /**
     * 租户号
     */
    private Integer tenantId;
    /**
     * 删除版本：默认为0；删除则赋值当前记录主键ID
     */
    private Long deletedVersion;
}